package cn.xuewei.mapper;

import cn.xuewei.pojo.entity.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageMapper {

    int insert(Message message);

    List<Message> selectMessageList(@Param("fromUserId") Integer fromUserId,@Param("toUserId") Integer toUserId);

    void messageRead(@Param("fromUserId") Integer fromUserId,@Param("toUserId") Integer toUserId);
}
